package com.work;

import com.work.bean.StudentBean;
import com.work.mapper.IPersonMapper;
import com.work.service.IPersonService;
import com.work.service.IStudentService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.time.LocalDate;

public class Test {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(ApplicationConfig.class);
        IStudentService service = context.getBean(IStudentService.class);
//        service.addStudent(new StudentBean("dsa", LocalDate.parse("1995-05-05")));
        service.delStudent(14);
//        IPersonService service = context.getBean(IPersonService.class);
//        System.out.println(service.findAll());
//        service.updateById(1,"13500000000");
    }
}
